feat: Add experimental RISC-V packaging support#55
Open
AkarinServer wants to merge 1 commit intobinaricat:mainfrom
Open
feat: Add experimental RISC-V packaging support#55AkarinServer wants to merge 1 commit intobinaricat:mainfrom
AkarinServer wants to merge 1 commit intobinaricat:mainfrom
Conversation
This commit introduces comprehensive support for packaging Netcatty for RISC-V architecture.
Changes:
- Added 'scripts/pack-riscv.sh': A unified script for building, assembling, and packaging the application into .deb files for RISC-V. It supports standard and debug builds (with --disable-gpu).
- Added 'scripts/get-config.cjs': A helper script to read configuration from package.json and electron-builder.json, ensuring consistency across builds.
- Added 'RISCV_README.md': Documentation for building and running Netcatty on RISC-V devices.
- Updated 'package.json': Added 'pack:riscv' script.
- Removed obsolete scripts ('scripts/mkdeb-riscv.sh', 'scripts/monitor-pack.sh').
The new packaging flow avoids app.asar for better compatibility on some RISC-V boards and provides a clean separation between build assembly and package generation.
Contributor
Author
|
该分支可以作为独立分支单独存在,并且自动触发main code copy。问题是,GitHub actions是没有RV编译的,或者说也不是没有,就是用simulator编译非常慢,很耗token。所以无法被编入CI。只能是谁需要就自己下载下来编译了。以及我的fork中有RV release,需要的可以自取。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR introduces comprehensive support for building and packaging Netcatty for RISC-V architecture.
Key Changes
New Packaging Script (
scripts/pack-riscv.sh):.debpackage generation.netcatty_*.deb: Standard build (with--no-sandbox).netcatty-debug_*.deb: Debug build (with--disable-gpu --no-sandbox) for boards with GPU driver issues.app.asar: Deliberately packages the app as a plain directory structure to avoid compatibility issues on certain RISC-V environments.node_modulesto remove dev dependencies.Config Helper (
scripts/get-config.cjs):package.jsonandelectron-builder.json.Documentation (
RISCV_README.md):Motivation
RISC-V support for Electron apps is still maturing. This PR provides a "manual but automated" way to build Netcatty for these devices without relying on
electron-builder's missing RISC-V support.How to Test (on RISC-V Board)
npmandelectron(v39.x riscv64) are available..debpackage.